from django import forms
from .models import Ptgb


class PtgbForm(forms.ModelForm):
    images = forms.FileField(widget=forms.ClearableFileInput(attrs={'multiple': True}), required=False)

    class Meta:
        model = Ptgb
        fields = ['pic', 'images']  # 根据需要调整字段